package org.springblade.modules.repair.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;import org.apache.ibatis.annotations.Param;import org.springblade.modules.repair.entity.MaintainMalfunctionHistory;import org.springblade.modules.repair.vo.MaintainMalfunctionHistoryVO;import org.springblade.modules.repair.vo.MalFunctionHistoryVO;import java.util.List;

public interface MaintainMalfunctionHistoryMapper extends BaseMapper<MaintainMalfunctionHistory> {
    /**
     * 自定义分页
     *
     * @param page
     * @param maintainMalfunctionHistory
     * @return
     */
    List<MaintainMalfunctionHistoryVO> selectMaintainMalfunctionHistoryPage(IPage page, MaintainMalfunctionHistoryVO maintainMalfunctionHistory);

    List<MalFunctionHistoryVO> selectByPlanId(@Param("planId") Long planId);

    List<MaintainMalfunctionHistory> listByPlanUser(@Param("planId") Long planId,@Param("userId") Long userId);
}
